package com.bz.portal.service.impl;

import com.bz.portal.feign.CommonItemFeignClient;
import com.bz.portal.service.ItemDescService;
import com.bz.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ItemDescServiceImpl implements ItemDescService {

    @Autowired
    private CommonItemFeignClient commonItemFeignClient;

    /**
     * 根据商品ID查询商品描述
     * @param itemId
     * @return
     */
    @Override
    public Result selectItemDescByItemId(Long itemId) {
        return Result.ok(commonItemFeignClient.selectItemDescByItemId(itemId));
    }
}
